home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
...taking it to the Macs!
/
...taking it to the Macs!.iso
/
Extras
/
ActiveX Mac SDK
/
ActiveX SDK
/
Container Common
/
dllinitialize.cpp
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1997-01-02
|
412 b
|
21 lines
|
[
TEXT/CWIE
]
extern "C"
{
OSErr pascal DllInitializationRoutine(CFragInitBlockPtr initBlkPtr);
short gResFile; // Refnum of the plugin’s resource file
}
OSErr pascal
DllInitializationRoutine(CFragInitBlockPtr initBlkPtr)
{
// __initialize(initBlkPtr);
// open up the resource fork of the dll and save it off
gResFile = ::FSpOpenResFile(initBlkPtr->fragLocator.u.onDisk.fileSpec, fsRdPerm);
return noErr;
}